import request from '@/utils/request'

//我的团队
export function myTeam(data) {
  return request({
    url: '/seller/invite/myTeam',
    method: 'get',
	data:data
  })
}

//获取团员收益率
export function getMyTeamMemberProfitRatios(sellerId) {
	return request({
	  url: `/seller/profit/getMyTeamMemberProfitRatios/${sellerId}`,
	  method: 'get'
	})
}

//获取团员收益率
export function setMyTeamMemberProfitRatios(sellerId,data) {
	return request({
	  url: `/seller/profit/setMyTeamMemberProfitRatios/${sellerId}`,
	  method: 'post',
	  data:data
	})
}

//获取团员收益率
export function paymentWayList() {
	return request({
	  url: `/seller/dict/payConfig`,
	  method: 'get'
	})
}

//创建下线
export function create(code,data) {
	return request({
	  url: `/seller/invite/create/${code}`,
	  method: 'post',
	  data:data
	})
}